<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Catharsis.NET.Domain: Catharsis.Domain.JsonNameableEntityConverter&lt; ENTITY &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Catharsis.NET.Domain
   &#160;<span id="projectnumber">2.4.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_catharsis_1_1_domain_1_1_json_nameable_entity_converter_3_01_e_n_t_i_t_y_01_4.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_catharsis_1_1_domain_1_1_json_nameable_entity_converter_3_01_e_n_t_i_t_y_01_4-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Catharsis.Domain.JsonNameableEntityConverter&lt; ENTITY &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p> 
 <a href="class_catharsis_1_1_domain_1_1_json_nameable_entity_converter_3_01_e_n_t_i_t_y_01_4.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Catharsis.Domain.JsonNameableEntityConverter&lt; ENTITY &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="class_catharsis_1_1_domain_1_1_json_nameable_entity_converter_3_01_e_n_t_i_t_y_01_4.png" usemap="#Catharsis.Domain.JsonNameableEntityConverter&lt; ENTITY &gt;_map" alt=""/>
  <map id="Catharsis.Domain.JsonNameableEntityConverter&lt; ENTITY &gt;_map" name="Catharsis.Domain.JsonNameableEntityConverter&lt; ENTITY &gt;_map">
<area href="class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4.html" alt="Catharsis.Domain.JsonEntityConverter&lt; ENTITY &gt;" shape="rect" coords="0,56,353,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7c91fa5a58e7216b57e6e15a26022f1c"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_domain_1_1_json_nameable_entity_converter_3_01_e_n_t_i_t_y_01_4.html#a7c91fa5a58e7216b57e6e15a26022f1c">WriteJson</a> (JsonWriter writer, object value, JsonSerializer serializer)</td></tr>
<tr class="separator:a7c91fa5a58e7216b57e6e15a26022f1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4.html">Catharsis.Domain.JsonEntityConverter&lt; ENTITY &gt;</a></td></tr>
<tr class="memitem:a95442ced6e907383f0a1e58cc8481ce2 inherit pub_methods_class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4.html#a95442ced6e907383f0a1e58cc8481ce2">CanConvert</a> (Type objectType)</td></tr>
<tr class="separator:a95442ced6e907383f0a1e58cc8481ce2 inherit pub_methods_class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49249278471af78ac3ebda80b5904a6f inherit pub_methods_class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4"><td class="memItemLeft" align="right" valign="top">override object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4.html#a49249278471af78ac3ebda80b5904a6f">ReadJson</a> (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)</td></tr>
<tr class="separator:a49249278471af78ac3ebda80b5904a6f inherit pub_methods_class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a543e3bf3125b9e42718f308d0cd373d3 inherit pub_methods_class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4.html#a543e3bf3125b9e42718f308d0cd373d3">WriteJson</a> (JsonWriter writer, object value, JsonSerializer serializer)</td></tr>
<tr class="separator:a543e3bf3125b9e42718f308d0cd373d3 inherit pub_methods_class_catharsis_1_1_domain_1_1_json_entity_converter_3_01_e_n_t_i_t_y_01_4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Custom JSON converter for named business entities which serializes only their respective identifiers (<a class="el" href="interface_catharsis_1_1_domain_1_1_i_identifyable_3_01_t_01_4.html#a802ba7122b707c27b0b97269007e5b92">IEntity.Id</a>) and names (<a class="el" href="interface_catharsis_1_1_domain_1_1_i_nameable.html#a2c5340c805691318c774b00bb23b0331">INameable.Name</a>) properties.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">ENTITY</td><td>Type of business entity.</td></tr>
  </table>
  </dd>
</dl>
<div class="typeconstraint">
<dl><dt><b>Type Constraints</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>ENTITY</em></td><td>&#160;:</td><td valign="top"><em><a class="el" href="interface_catharsis_1_1_domain_1_1_i_entity.html">IEntity</a></em></td><td>&#160;</td></tr>
<tr><td valign="top"><em>ENTITY</em></td><td>&#160;:</td><td valign="top"><em><a class="el" href="interface_catharsis_1_1_domain_1_1_i_nameable.html">INameable</a></em></td><td>&#160;</td></tr>
</table>
</dl>
</div>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7c91fa5a58e7216b57e6e15a26022f1c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">override void Catharsis.Domain.JsonNameableEntityConverter&lt; ENTITY &gt;.WriteJson </td>
          <td>(</td>
          <td class="paramtype">JsonWriter&#160;</td>
          <td class="paramname"><em>writer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">JsonSerializer&#160;</td>
          <td class="paramname"><em>serializer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Writes the JSON representation of the object.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">writer</td><td>The T:Newtonsoft.Json.JsonWriter to write to.</td></tr>
    <tr><td class="paramname">value</td><td>The value.</td></tr>
    <tr><td class="paramname">serializer</td><td>The calling serializer.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_catharsis.html">Catharsis</a></li><li class="navelem"><a class="el" href="namespace_catharsis_1_1_domain.html">Domain</a></li><li class="navelem"><a class="el" href="class_catharsis_1_1_domain_1_1_json_nameable_entity_converter_3_01_e_n_t_i_t_y_01_4.html">JsonNameableEntityConverter< ENTITY ></a></li>
    <li class="footer">Generated on Wed Aug 6 2014 00:51:32 for Catharsis.NET.Domain by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
